package com.game.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.game.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.game.business.mapper.TGameRwMapper;
import com.game.business.domain.TGameRw;
import com.game.business.service.ITGameRwService;

/**
 * 任务类型Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-09
 */
@Service
public class TGameRwServiceImpl extends ServiceImpl<TGameRwMapper,TGameRw>  implements ITGameRwService
{
    @Autowired
    private TGameRwMapper tGameRwMapper;

    /**
     * 查询任务类型
     *
     * @param id 任务类型主键
     * @return 任务类型
     */
    @Override
    public TGameRw selectTGameRwById(String id)
    {
        return tGameRwMapper.selectTGameRwById(id);
    }

    /**
     * 查询任务类型列表
     *
     * @param tGameRw 任务类型
     * @return 任务类型
     */
    @Override
    public List<TGameRw> selectTGameRwList(TGameRw tGameRw)
    {
        return tGameRwMapper.selectTGameRwList(tGameRw);
    }

    /**
     * 新增任务类型
     *
     * @param tGameRw 任务类型
     * @return 结果
     */
    @Override
    public int insertTGameRw(TGameRw tGameRw)
    {
                tGameRw.setCreateTime(DateUtils.getNowDate());
            return tGameRwMapper.insertTGameRw(tGameRw);
    }

    /**
     * 修改任务类型
     *
     * @param tGameRw 任务类型
     * @return 结果
     */
    @Override
    public int updateTGameRw(TGameRw tGameRw)
    {
                tGameRw.setUpdateTime(DateUtils.getNowDate());
        return tGameRwMapper.updateTGameRw(tGameRw);
    }

    /**
     * 批量删除任务类型
     *
     * @param ids 需要删除的任务类型主键
     * @return 结果
     */
    @Override
    public int deleteTGameRwByIds(String[] ids)
    {
        return tGameRwMapper.deleteTGameRwByIds(ids);
    }

    /**
     * 删除任务类型信息
     *
     * @param id 任务类型主键
     * @return 结果
     */
    @Override
    public int deleteTGameRwById(String id)
    {
        return tGameRwMapper.deleteTGameRwById(id);
    }
}
